﻿
using Kaiser.Infrastructure;
using Kaiser.Modules.Cubic.DomainModel.Product;
using Kaiser.Modules.Cubic.Services;
using Kaiser.Modules.Cubic.Services.Impl;

namespace Kaiser.Modules.Cubic
{
    public class CubicModule : Module
    {
        public override string ModuleName
        {
            get { return "Cubic"; }
        }

        public override void Initialize()
        {
            SetupContainer();
        }

        /// <summary>
        /// 设置DI映射
        /// </summary>
        private void SetupContainer()
        {
            //DependencyInjector
            //    .RegisterType<ICMSManageService, CMSManageService>();
            DependencyInjector.RegisterType<ICubicService, CubicService>();
            DependencyInjector.RegisterType<IProductCategoryService, ProductCategoryService>();
            DependencyInjector.RegisterType<IProductService, ProductService>();
            DependencyInjector.RegisterType<IAdvertService, AdvertService>();
            DependencyInjector.RegisterType<IAdvertSpaceService, AdvertSpaceService>();

            DependencyInjector.RegisterType<IMessageService, MessageService>();
        }

        public override string AuthenticationModuleName
        {
            get
            {
                return "Admin";
            }
        }
    }

  
}
